package o;

import android.content.SharedPreferences.Editor;
import android.text.TextUtils;

public class eue extends eui {
    private static volatile eue ॱ;

    public eue(String str) {
        super(str);
    }

    public static synchronized eue ˎ() {
        eue o_eue;
        synchronized (eue.class) {
            if (ॱ == null) {
                ॱ = new eue("thirdAppInitParams");
            }
            o_eue = ॱ;
        }
        return o_eue;
    }

    public void ॱ(String str, String str2, String str3) {
        if (TextUtils.isEmpty(str)) {
            Logger.ˎ("ThirdAppInitParams", "can not save initParam: packageName is empty!");
            return;
        }
        Logger.ˎ("ThirdAppInitParams", "saveInitParams, packageName = " + str);
        String str4 = str + "_" + "initParam";
        String str5 = str + "_" + "appId";
        Editor edit = this.ˏ.edit();
        edit.putString(str4, str2);
        edit.putString(str5, str3);
        edit.commit();
    }

    public void ˋ(String str) {
        if (TextUtils.isEmpty(str)) {
            Logger.ˎ("ThirdAppInitParams", "can not delete initParam: packageName is empty!");
            return;
        }
        String str2 = str + "_" + "initParam";
        String str3 = str + "_" + "appId";
        ʼ(str2);
        ʼ(str3);
    }

    public String[] ˏ(String str) {
        String[] strArr = new String[2];
        if (TextUtils.isEmpty(str)) {
            Logger.ˎ("ThirdAppInitParams", "can not delete initParam: packageName is empty!");
            return null;
        }
        Logger.ˎ("ThirdAppInitParams", "getInitParams, packageName = " + str);
        String ॱ = ॱ(str + "_" + "appId", "");
        String ॱ2 = ॱ(str + "_" + "initParam", "");
        strArr[0] = ॱ;
        strArr[1] = ॱ2;
        return strArr;
    }
}
